package com.ruoyi.project.gzbook.indexmenu.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.TreeEntity;

/**
 * 图书分类类目对象 dg_index_menu
 * 
 * @author mhg
 * @date 2021-10-08
 */
public class DgIndexMenu extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 类目名称 */
    @Excel(name = "类目名称")
    private String name;

    /** 祖先id */
    @Excel(name = "祖先id")
    private String ancestorId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAncestorId(String ancestorId)
    {
        this.ancestorId = ancestorId;
    }

    public String getAncestorId()
    {
        return ancestorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("ancestorId", getAncestorId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
